<?php

if ( isset ( $_GET['tab'] ) ) {
     $tab = $_GET['tab'];
} else {
     $tab = 'general';
}


switch ( $tab ) {
     case 'general' :
          $tabtext = tsts_get_contextual_help_options_general();
          break;
     case 'skins' :
          $tabtext = tsts_get_contextual_help_options_skins();
          break;
}

function tsts_get_contextual_help_options_general() {
     $tabtext = '';
     $tabtext .= <<<EOT
<h2>Header Options</h2>
<h3>Header Nav Menu Position</h3>
<p>The default location of the header navigation menu is above the site title/description. Use this setting to
display the header navigation menu below the site title/description.</p>
<h3>Header Nav Menu Depth</h3>
<p>By default, the Header Nav Menu only displays top-level Pages. Child Pages are displayed in the Sidebar Nav
Menu when the Top-Level Page is displayed. To change this setting:</p>
<ol>
     <li><strong>One</strong> (default) displays only the top-level Pages in the Header Nav Menu</li>
     <li><strong>Two</strong> displays the top-level Pages in the Header Nav Menu, and displays second-level
Pages in a dropdown menu when the top-level Page is hovered.</li>
     <li><strong>Three</strong> displays the top-level Pages in the Header Nav Menu, displays second-level
Pages in a dropdown menu when the top-level Page is hovered, and displays third-level Pages in a dropdown menu
when the second-level Page is hovered.</li>
</ol>
<h2>Footer Options</h2>
<h3>Footer Credit</h3>
<p>This setting controls the display of a footer credit link. By default, no footer credit link is displayed. You
are under no obligation to display a credit link in the footer or anywhere else.</p>
EOT;
     return $tabtext;
}
//
function tsts_get_contextual_help_options_skins() {
     $tabtext = '';
     $tabtext .= <<<EOT
<h2>skins</h2>
<p><em>skins</em> are the <em>skins</em>, or styles, applied to tsts.</p>
EOT;
     $tsts_skins = tsts_get_valid_skins();
     foreach ( $tsts_skins as $skin ) {
          $tabtext .= <<<EOT
<dl>
     <dt><strong>{$skin['name']}</strong></dt>
     <dd>{$skin['description']}</dd>
</dl>
EOT;
     }
     return $tabtext;
}